<template>
  <NavBack title="支付"></NavBack>

  <!-- /order/deleteCartItem -->

  <!-- <form action="http://localhost/pay" method="get">
    订单编号：<input type="text" name="orderid" value="111111222223344cr" />
    <br />
    订单金额：<input type="text" name="money" value="9" />
    <input type="hidden" name="return_url" value="http://localhost:8080/MyMy" />
    <input type="submit" value="支付" />
  </form> -->
</template>

<script>
import NavBack from "../../components/NavBack.vue";
import { showSuccessToast, showFailToast } from "vant";
import { showDialog } from 'vant';
export default {
  components: {
    NavBack,
  },
  data() {
    return {
      // orderId: "111111222223344cc",
      // money: 0,
    };
  },
  created() {
    this.$http({
      url: "/order/deleteCartItem",
      params: {
        userid: localStorage.getItem("userid"),
      },
    }).then((res) => {
      console.log(res.data);

      showDialog({
        message: "支付成功",
        theme: "round-button",
      }).then(() => {
        this.$router.push("./shoppingcart");
      });
     
    });
  },
};
</script>

<style>
</style>